﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Entidades;
using Persistencia.Mappings.Extensions;

namespace Persistencia.Mappings
{
    public class ErrorMap : ClassMap<Error>
    {
        /// <summary>
        /// Constructor por defecto
        /// </summary>
        public ErrorMap()
        {
            Table("ERROR");
            
            this.DefaultMap();

            Map(x => x.ExceptionType).Column("ExceptionType");
            Map(x => x.FechaYHora).Column("FechaYHora");
            Map(x => x.Message).Column("Message");
            Map(x => x.StackTrace).Column("StackTrace");
        }
    }
}